﻿@using GuRenFang.Common
@model IEnumerable<GuRenFang.Service.Entity.Category>
<ul>
    @foreach (var item in Model)
    {
        <li>
            @if (ViewBag.PhotoType == "婚纱")
            {
                <a id="category-@item.Id" href="@Url.Content("~/management/Wedding/ShowWeddingCategory?id=" + item.Id + "&name=" + Url.Encode(item.Name))">@item.Name</a>
            }
            else
            { 
                <a id="category-@item.Id" href="@Url.Content("~/management/Pictorial/ShowPictorialCategory?id=" + item.Id + "&name=" + Url.Encode(item.Name))">@item.Name</a>
            }
        </li>
    }
</ul>
